package com.tarena.lbs.article.web.controller;

import com.tarena.lbs.article.web.service.ArticleCategoryService;
import com.tarena.lbs.base.protocol.model.Result;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.pojo.content.vo.ArticleCategoryVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ArticleCategoryController {
    @Autowired
    private ArticleCategoryService articleCategoryService;
    //查询当前系统文章所有分类数据
    @GetMapping("/admin/content/category/list")
    public Result<PageResult<ArticleCategoryVO>> categoryPage(){
        return new Result<>(articleCategoryService.categoryPage());
    }
}
